package com.shanzmoo.stm.admin.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 仓储客户更新密码对象
 *
 * @author： Gzhao 2021/3/14
 */
@Data
@ApiModel("仓储客户更新密码对象")
public class StoreMemberUpdatePasswordDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "密码不允许为空")
    @Length(min = 6, max = 10, message = "密码长度要求6到10位")
    @ApiModelProperty(value = "新密码（6-10个长度的字符）", required = true)
    private String password;
}
